<%-- 
    Document   : cadMusica
    Created on : 19/09/2011, 16:36:41
    Author     : Tarde
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
    </head>
    <body> 
        <form name="form" action="ServletCadMusica" method="POST">
            <p> Titulo: <input type="text" name="titulo" value="" /> </p>
            <p> Duração: <input type="text" name="duracao" value="" /> </p>
            <p> Letra: <textarea name="letra" rows="5" cols="20"> </textarea> </p>
            <p> Compositor: <input type="text" name="compositor" value="" /> </p>
            <p> Tags (Separadas por ";"): <textarea name="tags" rows="4" cols="20">
                </textarea> </p>
                
            <%
                String erro = (String) request.getAttribute("erro");
                if(erro != null) {
                    out.println("<p>"+erro+"</p>");
                }
            %>
            <p> <input type="submit" value="Ok" name="cadastrar" /> </p>
            
        </form>
    </body>
</html>